package com.geek.javase.ch05;

/*
 *@author wangpeng
 *2025/10/13 16:54
 *@description TODO
 */
enum WPSType {
    WORD,PPT,EXCEL,XMIND

}
public class WPSTest {
    public void choose(WPSType type){
        switch (type){
            case WORD:
                System.out.println("word");
                break;
            case PPT:
                System.out.println("ppt");
                break;
            case EXCEL:
                System.out.println("excel");
                break;
            case XMIND:
                System.out.println("xmind");
                break;
            default:
                System.out.println("未知");
                break;
        }
    }

    public static void main(String[] args) {
        WPSType wpsType = WPSType.PPT;
        WPSTest wpsTest = new WPSTest();
        wpsTest.choose(wpsType);

    }
}

